<?php
$this->pageTitle = Yii::app()->name . ' - manage users';
?>
<h1>Manage users</h1>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider' => $model->search(),
    'filter' => $model,
    'nullDisplay' => "[N/A]",
    'showTableOnEmpty' => true,
    'columns' => array(
        array(
            'name' => 'firstname',
            'type' => 'raw',
        ),
        array(
            'name' => 'lastname',
            'type' => 'raw',
        ),
        array(
            'name' => 'username',
            'type' => 'raw',
        ),
        array(
            'name' => 'locked',
            'type' => 'raw',
        ),
        array(
            'name' => 'login_ip',
            'type' => 'raw',
        ),
        array(
            'name' => 'last_login',
            'type' => 'datetime',
        ),
        array(
            'header' => 'Action',
            'class' => 'CButtonColumn',
        ),
    ),
));
?> 